import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
} from 'typeorm';

@Entity()
export class Test {
  @PrimaryGeneratedColumn('uuid')
  id: number;

  @Column({ type: 'varchar', length: 26 })
  name: string;

  @Column({ type: 'varchar', length: 16 })
  password: string;

  @Column({ type: 'int' })
  age: number;

  @Column()
  @CreateDateColumn()
  create_time: Date;

  @Column()
  phone: string;

  @Column()
  email: string;
}
